package mest.dao.cxj;

import mest.Dto.cxj.WorkFileDto;
import mest.entity.work_file;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WorkFileDao {


    /**
     * 查询所有工序档案
     *
     * @param page
     * @param limit
     * @return
     */
    List<WorkFileDto> selectAllWorkFile(@Param("page") Integer page, @Param("limit") Integer limit,
                                        @Param("workName") String workName, @Param("theirDb") String theirDb);

    /**
     * 查询工序档案数量
     *
     * @return
     */
    Integer selectCountWorkFile(@Param("workName") String workName, @Param("theirDb") String theirDb);

    /**
     * 添加工序档案
     */
    int insertWorkFile(@Param("workFile") work_file workFile, @Param("theirDb") String theirDb);

    /**
     * 假删数据
     */
    int deleteWorkFile(@Param("id") Integer id, @Param("theirDb") String theirDb);

	int update(Map<String, Object> map);

}